package com.itheima.io.fileinputstream.demo01;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;

public class FileInputStreamDemo01 {

    public static void main(String[] args) throws IOException {

        FileInputStream fileInputStream = new FileInputStream("itheima-io-fileinputstream\\a.txt");

        int by = -1;
        while ((by = fileInputStream.read()) != -1) {
            System.out.print((char) by);
        }

        fileInputStream.close();

    }

}
